TestClass = {}

TestClass.__index = TestClass

TestClass.x = 10
TestClass.y = 100

function TestClass:new(x,y)
	local temp = {}
	setmetatable(temp, TestClass)

	print("TestClass x = "..TestClass.x.." "..TestClass.y)
	print("temp x = "..temp.x.." "..temp.y)

	temp.x = x
	temp.y = y

	print("TestClass x = "..TestClass.x.." "..TestClass.y)
	print("temp x = "..temp.x.." "..temp.y)
	return temp
end

function TestClass:test()
	print(self.x, self.y)
end

